package com.huazh.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Authoe: hzh
 * @Time: 2020/7/3114:11
 */
@FeignClient(value = "seata-user")
public interface UserServiceClient {

    @RequestMapping(value = "/user/add", method = RequestMethod.POST, produces = {"application/json"}, consumes = {"application/glue+json"})
    Boolean add(@RequestParam("accountId") Long accountId, @RequestParam("userName") String userName);

}
